#ifndef CENTERWIDGET_H
#define CENTERWIDGET_H

#include "interface/IInterface.h"

class CCenterWidget : public QWidget
{
    Q_OBJECT
public:
    explicit CCenterWidget(interface::IInterface *beginInterface);
    virtual ~CCenterWidget();

    interface::IInterface* getCurrentWidget();

private Q_SLOTS:
    void changeWidget(interface::InterfaceRequestEnum from, \
                      interface::InterfaceRequestEnum next, \
                      void *param);

private:
    // just set the identified interface as the main widget
    void setWidget(interface::IInterface *currentWidget);

signals:
    void changeCenterWidget();

private:
    interface::IInterface     *currentWidget;
};

#endif // CENTERWIDGET_H
